Off-by-one error
TYPE OF NUMERICAL OR COUNTING ERROR
Fencepost error; Obi-wan error; Obi-Wan error; Off by one errors; Off by one error; Off-by-one-error; Off by one (bug); Buffer fence post error; OB1; Fencepost problem; Fence post error; Off-by-one; Off by one; Off by 1; Off-by-one errors; Banana error; Fence-post error; OBOB; Picket-fence problem
An off-by-one error or off-by-one bug (known by acronyms OBOE, OBO, OB1 and OBOB) is a logic error involving the discrete equivalent of a boundary condition. It often occurs in computer programming when an iterative loop iterates one time too many or too few.